import { Module, OnApplicationBootstrap } from '@nestjs/common';
import { JetbrainsController } from '@/modules/jetbrains/jetbrains.controller';
import { JetbrainsService } from '@/modules/jetbrains/jetbrains.service';

@Module({
  controllers: [JetbrainsController],
  providers: [JetbrainsService],
})
export class JetbrainsModule implements OnApplicationBootstrap {
  constructor(private readonly jetbrainsService: JetbrainsService) {}

  onApplicationBootstrap() {
    this.jetbrainsService.genCertificate();
  }
}
